import http from "@/utils/http";

// 分页
export const goodsSizePage = (params)=> http.get('/merchantsapi/goods/size/page', params)

// 列表
export const goodsSizeList = (params)=> http.get('/merchantsapi/goods/size/list', params)

// 新增
export const goodsSizeAdd = (data)=> http.post('/merchantsapi/goods/size/add', data)

// 删除
export const goodsSizeDelete = (id)=> http.delete(`/merchantsapi/goods/size/delete/${id}`)

// 启用禁用
export const goodsSizeEnabled = (id, enbaled)=> http.post(`/merchantsapi/goods/size/enabled/${id}/${enbaled}`)